<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加企业</title>
<script type="text/javascript">
var comName=$("#comName").val();
function checkName(){
	if(comName==null){
		$("#nameError").val("名称不能为空！");
		}else{
	$.ajax({
          type:'post',
          url:'com_checkName',
          data:{comName:comName},
          dataType:'json',
          success:function(data){
               $("#nameError").val(data[0].msg);
              }
		});
		}
}
function checkEmail(){}


</script>
<style type="text/css">

div table tr td{
font-family: '微软雅黑';
font-size: 15px;
}
</style>
</head>
<body>
<form action="com_saveCompany" method="post" id="save">
<s:hidden name="company.comId" value="%{company.comId}"></s:hidden>
<s:hidden name="company.created" value="%{company.created}"></s:hidden>
<div style="width: 500px;height: 380px;background-color: #f0f8ff ;margin: 0px auto;">
<table>
<tr height="40px;">
<td width="120px">企业名称<span style="color:red">*</span>：</td>
<td width="150px"><s:textfield name="company.comName" required="true" style="width:100%;height:100%" theme="simple" id="comName"  placeholder="请输入企业名称" value="%{company.comName}"></s:textfield></td>
<td width="200px;" id="emailError"></td>
</tr>
<tr height="40px;">
<td width="120px">企业邮箱<span style="color:red">*</span>：</td>
<td width="150px"><s:textfield name="company.comEmail" required="true" style="width:100%;height:100%" theme="simple"  id="comEmail"  placeholder="请输入邮箱" value="%{company.comEmail}"></s:textfield> </td>
<td width="200px;"  id="nameError" ></td>
</tr>
<tr height="40px;">
<td width="120px">密码<span style="color:red">*</span>：</td>
<td width="150px"><s:password name="company.comPwd" required="true"  style="width:100%;height:100%" theme="simple"  id="comPwd"  placeholder="请输入密码" value=""></s:password></td>
<td width="200px;" ></td>
</tr>
<tr height="40px;">
<td width="120px">再次输入密码<span style="color:red">*</span>：</td>
<td width="150px"><s:password name="" required="true"  id="replacePwd"  style="width:100%;height:100%" theme="simple"  placeholder="请输入再次输入密码" value=""></s:password></td>
<td width="200px;" id="replacePwdError"></td>
</tr>
<tr height="40px;">
<td width="120px">联系方式<span style="color:red">*</span>：</td>
<td width="150px"><s:textfield name="company.comPhone" required="true" style="width:100%;height:100%" theme="simple"  id="comPhone"  placeholder="请输入联系电话" value="%{company.comPhone}"></s:textfield></td>
<td width="200px;" id="nameError"></td>
</tr>
<tr height="40px;">
<td width="120px">地址<span style="color:red">*</span>：</td>
<td width="380px" colspan="2"><%@ include file="/page/common/address.jsp" %></td>
</tr>
<tr height="40px;">
<td width="120px">银行卡号：</td>
<td width="150px"><s:textfield name="company.bankCard" required="true" style="width:100%;height:100%"  theme="simple"  id="bankCard"  placeholder="请输入银行卡号" value="%{company.bankCard}"></s:textfield></td>
<td width="200px;" id="nameError"></td>
</tr>
<tr height="40px;">
<td width="120px">利润率<span style="color:red">*</span>：</td>
<td width="150px"><s:textfield name="company.profit" required="true" style="width:100%;height:100%" id=""  theme="simple"  placeholder="请输入利润率" value="%{company.profit}"></s:textfield></td>
<td width="200px;" id="nameError"></td>
</tr>
<tr height="40px;">
<td width="120px">注册人：</td>
<td width="150px"><s:textfield name="company.comUser" required="true" style="width:100%;height:100%" id="" theme="simple"  placeholder="请输入企业注册人" value="%{company.comUser}"></s:textfield></td>
<td width="200px;" id="nameError"></td>
</tr>
</table>
</div>
</form>
</body>
</html>